package Qm;

public class MyStringTest {
    public static void main(String[] args) {

        String s1 = "hello java";
        String s2 = "hello java";

   if (s1.equals(s2)){
    String news1 = s1.replace(" ","");

    System.out.println(news1);
    String newS1Res= news1.replace("java", "world");

    System.out.println(newS1Res);


}


        }
    }





